<?php
/**
 * Minhlog Domain_Entity 文章评论类
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 *
 * @category   Domain
 * @package    Domain_Entity
 * @copyright  Copyright (c) 2009-2010 Minh.Shu@gmail.com
 * @license    New BSD License
 * @author     Minh.Shu
 * @version    $Id: Comment.php 2 2010-01-17 13:49:08Z Minh.Shu $
 *
 */

class Domain_Entity_Comment extends Domain_Entity_Abstract
{
    protected $_commentId;
    protected $_articleId;
    protected $_nickname;
    protected $_avatar;
    protected $_comment;
    protected $_replyTime;
    protected $_ip;

    // set/get方法定义开始
    public function setPrimaryId ($primaryId)
    {
        return $this->setCommentId($primaryId);
    }

    public function getPrimaryId()
    {
        return $this->getCommentId();
    }

    public function setCommentId($commentId)
    {
        $this->_commentId = (int) $commentId;
        return $this;
    }

    public function getCommentId()
    {
        return $this->_commentId;
    }

    public function setArticleId($articleId)
    {
        $this->_articleId = (int) $articleId;
        return $this;
    }

    public function getArticleId()
    {
        return $this->_articleId;
    }

    public function setNickname($nickname)
    {
        $this->_nickname = (string) $nickname;
        return $this;
    }

    public function getNickName()
    {
        return $this->_nickname;
    }

    public function setAvatar($avatar)
    {
        $this->_avatar = (string) $avatar;
        return $this;
    }

    public function getAvatar()
    {
        return $this->_avatar;
    }

    public function setComment($comment)
    {
        $this->_comment = (string) $comment;
        return $this;
    }

    public function getComment()
    {
        return $this->_comment;
    }

    public function setReplyTime($replyTime)
    {
        $this->_replyTime = (string) $replyTime;
        return $this;
    }

    public function getReplyTime()
    {
        return $this->_replyTime;
    }

    public function setIp($ip)
    {
        $this->_ip = (string) $ip;
        return $this;
    }

    public function getIp()
    {
        return $this->_ip;
    } // set/get方法定义结束
}